/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package net.jdcloud.HufuDatacubeService.model.userscorepost;

import com.jdcloud.sdk.apim.annotation.*;
import java.util.Objects;
import java.util.Arrays;
import java.io.Serializable;
import java.io.IOException;
import javax.xml.bind.annotation.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

/**
 * UserScorePOSTBody
 */
@XmlRootElement(name = "userScorePOSTBody")
@XmlAccessorType(XmlAccessType.FIELD)

public class UserScorePOSTBody implements Serializable {

    private static final long serialVersionUID = 1L;

    @XmlElement(name = "md5_mobile")
    @SerializedName("md5_mobile")
    private String md5Mobile = null;

    @XmlElement(name = "apply_time")
    @SerializedName("apply_time")
    private String applyTime = null;

    @XmlElement(name = "type")
    @SerializedName("type")
    private String type = null;

    public UserScorePOSTBody md5Mobile(String md5Mobile) {
        this.md5Mobile = md5Mobile;
        return this;
    }

    /**
     * 加密手机号
     * @return md5Mobile
    **/

    public String getMd5Mobile() {
        return md5Mobile;
    }

    public void setMd5Mobile(String md5Mobile) {
        this.md5Mobile = md5Mobile;
    }

    public UserScorePOSTBody applyTime(String applyTime) {
        this.applyTime = applyTime;
        return this;
    }

    /**
     * 申请时间
     * @return applyTime
    **/

    public String getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(String applyTime) {
        this.applyTime = applyTime;
    }

    public UserScorePOSTBody type(String type) {
        this.type = type;
        return this;
    }

    /**
     * 评分类型
     * @return type
    **/

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    @Override
    public boolean equals(java.lang.Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        UserScorePOSTBody userScorePOSTBody = (UserScorePOSTBody) o;
        return Objects.equals(this.md5Mobile, userScorePOSTBody.md5Mobile) &&
        Objects.equals(this.applyTime, userScorePOSTBody.applyTime) &&
        Objects.equals(this.type, userScorePOSTBody.type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(md5Mobile, applyTime, type);
    }


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class UserScorePOSTBody {\n");
        
        sb.append("    md5Mobile: ").append(toIndentedString(md5Mobile)).append("\n");
        sb.append("    applyTime: ").append(toIndentedString(applyTime)).append("\n");
        sb.append("    type: ").append(toIndentedString(type)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
          return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}

